package com.example.neusoft.a16110100126yttordering.service;

import com.example.neusoft.a16110100126yttordering.bean.CollectStatus;
import com.example.neusoft.a16110100126yttordering.bean.FoodInfo;
import com.example.neusoft.a16110100126yttordering.bean.Result;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface FoodService {
    @GET("getFoodByShop.do")
    Call<List<FoodInfo>> getFoodByShop(@Query("shop_id")int shop_id);
    @GET("isCollected.do")
    Call<Result> isCollected(
            @Query("user_id") int user_id,
            @Query("shop_food_id")int shop_food_id,
            @Query("flag") int flag
    );
    @GET("userCollectShop.do")
    Call<Result> userCollectShop(
            @Query("user_id")int user_id,
            @Query("shop_id")int shop_id
    );

}
